package com.ruoyi.manager.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manager.mapper.ArvinDatabaseClassificationMapper;
import com.ruoyi.manager.domain.ArvinDatabaseClassification;
import com.ruoyi.manager.service.IArvinDatabaseClassificationService;
import com.ruoyi.common.annotation.DataScope;

/**
 * 项目分类Service业务层处理
 * 
 * @author arvin
 * @date 2025-04-01
 */
@Service
public class ArvinDatabaseClassificationServiceImpl implements IArvinDatabaseClassificationService 
{
    @Autowired
    private ArvinDatabaseClassificationMapper arvinDatabaseClassificationMapper;

    /**
     * 查询项目分类
     * 
     * @param id 项目分类主键
     * @return 项目分类
     */
    @Override
    public ArvinDatabaseClassification selectArvinDatabaseClassificationById(Long id)
    {
        return arvinDatabaseClassificationMapper.selectArvinDatabaseClassificationById(id);
    }

    /**
     * 查询项目分类列表
     * 
     * @param arvinDatabaseClassification 项目分类
     * @return 项目分类
     */
    @Override
    @DataScope(deptAlias = "d")
    public List<ArvinDatabaseClassification> selectArvinDatabaseClassificationList(ArvinDatabaseClassification arvinDatabaseClassification)
    {
        return arvinDatabaseClassificationMapper.selectArvinDatabaseClassificationList(arvinDatabaseClassification);
    }

    /**
     * 新增项目分类
     * 
     * @param arvinDatabaseClassification 项目分类
     * @return 结果
     */
    @Override
    public int insertArvinDatabaseClassification(ArvinDatabaseClassification arvinDatabaseClassification)
    {
        return arvinDatabaseClassificationMapper.insertArvinDatabaseClassification(arvinDatabaseClassification);
    }

    /**
     * 修改项目分类
     * 
     * @param arvinDatabaseClassification 项目分类
     * @return 结果
     */
    @Override
    public int updateArvinDatabaseClassification(ArvinDatabaseClassification arvinDatabaseClassification)
    {
        return arvinDatabaseClassificationMapper.updateArvinDatabaseClassification(arvinDatabaseClassification);
    }

    /**
     * 批量删除项目分类
     * 
     * @param ids 需要删除的项目分类主键
     * @return 结果
     */
    @Override
    public int deleteArvinDatabaseClassificationByIds(Long[] ids)
    {
        return arvinDatabaseClassificationMapper.deleteArvinDatabaseClassificationByIds(ids);
    }

    /**
     * 删除项目分类信息
     * 
     * @param id 项目分类主键
     * @return 结果
     */
    @Override
    public int deleteArvinDatabaseClassificationById(Long id)
    {
        return arvinDatabaseClassificationMapper.deleteArvinDatabaseClassificationById(id);
    }
}
